package com.iweb.service.impl;

import com.iweb.dao.FoodDao;
import com.iweb.pojo.Food;
import com.iweb.service.FoodService;

import java.util.List;

/**
 * @author: jack
 * @date: 2022-08-05 0005
 * @ApiNOTE:
 */
public class FoodServiceImpl implements FoodService {

  private FoodDao foodDao;

  public void setFoodDao(FoodDao foodDao) {
    this.foodDao = foodDao;
  }

  @Override
  public List<Food> findAllFood() {
    return foodDao.selectList();
  }
}
